<section class="content-header">
    <h1>
        系统设置
        <small>插件管理 / 插件信息维护</small>
    </h1>
</section>

<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <!-- general form elements -->
            <div class="box">
                {{!--<div class="box-header with-border">--}}
                    {{!--<h3 class="box-title">系统设置</h3>--}}
                {{!--</div>--}}
                <!-- form start -->
                <form action="/admin/addon/add" method="post" class="form-horizontal">
                    <div class="box-body">
                        <input class="form-control" name="_id" placeholder="" value="{{addon.id}}"
                               type="hidden">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">插件标识符（不可修改）</label>

                            <div class="col-sm-10">
                                <input class="form-control" name="name" placeholder="" value="{{addon.name}}"
                                       type="text" readonly="readonly" disabled="disabled">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">插件别名</label>

                            <div class="col-sm-10">
                                <input class="form-control" name="alias" placeholder="" value="{{addon.alias}}"
                                       type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">版本</label>

                            <div class="col-sm-10">
                                <input class="form-control" name="version" placeholder="" value="{{addon.version}}"
                                       type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">插件描述</label>

                            <div class="col-sm-10">
                                <textarea class="form-control" name="summary" rows="5" cols="*">{{addon.summary}}</textarea>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">作者</label>

                            <div class="col-sm-10">
                                <input class="form-control" name="developer" placeholder="" value="{{addon.developer}}"
                                       type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">作者网站</label>

                            <div class="col-sm-10">
                                <input class="form-control" name="website" placeholder="" value="{{addon.website}}"
                                       type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">前台入口（访问路径）</label>

                            <div class="col-sm-10">
                                <input class="form-control" name="entry" placeholder="" value="{{addon.entry}}"
                                       type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">后台入口（访问路径）</label>

                            <div class="col-sm-10">
                                <input class="form-control" name="adminEntry" placeholder="" value="{{addon.adminEntry}}"
                                       type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">图标（Font Awesome字体图标，不需要fa-前缀）</label>

                            <div class="col-sm-10">
                                <input class="form-control" name="icon" placeholder="" value="{{addon.icon}}"
                                       type="text">
                            </div>
                        </div>

                    </div>
                    <!-- /.box-body -->

                    <div class="box-footer">
                        <div class="col-sm-2">
                            <button type="submit" class="btn btn-block btn-danger">保存</button>
                        </div>
                    </div>
                </form>
            </div>
            <!-- /.box -->

        </div>
        <!--/.col (right) -->
    </div>
</section>

